- @new_path = new_user_path
== render 'fae/shared/index_header', title: 'Users', new_button: true, button_text: t('fae.user.add_user'), breadcrumbs: false

main.content
  table.js-sort-column
    thead
      tr
        th = t('fae.common.name')
        th = t('fae.user.email')
        th = t('fae.user.role')
        th = t('fae.user.last_login')
        th.-action-wide data-sorter="false" = t('fae.user.active')
        - if @option.site_mfa_enabled && current_user.super_admin?
          th.-action-wide data-sorter="false" = t('fae.user.mfa_active')
        th.-action data-sorter="false"

    tbody
      - @users.each do |user|
        tr id="fae_user_#{user.id}"
          td: a href=edit_user_path(user) #{user.first_name} #{user.last_name}
          td = user.email
          td = user.role.name
          td = fae_date_format user.last_sign_in_at if user.last_sign_in_at.present?
          td = fae_toggle user, :active unless current_user == user
          - if @option.site_mfa_enabled && current_user.super_admin?
            td = fae_toggle user, :user_mfa_enabled unless current_user == user
          td = fae_delete_button user, user unless current_user == user
